package com.office.forum.manage.following.mapper;

import java.util.List;

import com.office.forum.manage.following.domain.FollowingUser;
import com.office.forum.manage.following.domain.ForumFollowing;
import org.apache.ibatis.annotations.Param;

/**
 * 用户关注表Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
public interface ForumFollowingMapper 
{
    /**
     * 查询用户关注表
     * 
     * @param followingId 用户关注表主键
     * @return 用户关注表
     */
    public ForumFollowing selectForumFollowingByFollowingId(Long followingId);

    /**
     * 查询用户关注表列表
     * 
     * @param forumFollowing 用户关注表
     * @return 用户关注表集合
     */
    public List<ForumFollowing> selectForumFollowingList(ForumFollowing forumFollowing);

    /**
     * 新增用户关注表
     * 
     * @param forumFollowing 用户关注表
     * @return 结果
     */
    public int insertForumFollowing(ForumFollowing forumFollowing);

    /**
     * 修改用户关注表
     * 
     * @param forumFollowing 用户关注表
     * @return 结果
     */
    public int updateForumFollowing(ForumFollowing forumFollowing);

    /**
     * 删除用户关注表
     * 
     * @param followingId 用户关注表主键
     * @return 结果
     */
    public int deleteForumFollowingByFollowingId(@Param("followingId") Long followingId);

    /**
     * 批量删除用户关注表
     * 
     * @param followingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteForumFollowingByFollowingIds(@Param("followingIds") Long[] followingIds);


    List<ForumFollowing> selectForumFollowedList( ForumFollowing forumFollowing);

    List<FollowingUser> selectForumFollowedUser(Long id);
}
